package com.jy.rhin.model.body.jiankangtj;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

/**
 * 预防接种
 *
 * @author shenguangyang
 */
@Data
public class YuFangJZ {
    /**
     * 接种日期, 20151003
     */
    @XPath(path = "/effectiveTime/@value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_145_00))
    private String jieZhongRQ;

    /**
     * 接种剂次
     */
    @XPath(path = "/repeatNumber/@value")
    private String jieZhongJC;

    /**
     * 疫苗编码
     */
    @XPath(path = "/consumable/manufacturedProduct/manufacturedMaterial/code",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_50_016_00))
    private CodeObject yiMiaoBM;

    /**
     * 接种部位
     */
    @XPath(path = "/approachSiteCode/@code")
    private String jieZhongBW;

    /**
     * 预防接种疫苗名称
     */
    @XPath(path = "/consumable/manufacturedProduct/manufacturedMaterial/name/text()")
    private String yuFangJZYMMC;

    /**
     * 疫苗生产批号
     */
    @XPath(path = "/consumable/manufacturedProduct/manufacturedMaterial/lotNumberText/text()",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_50_017_00))
    private String yiMiaoPH;

    /**
     * 疫苗生产厂家
     */
    @XPath(path = "/consumable/manufacturedProduct/manufacturerOrganization/name/text()")
    private String yiMiaoSCCJ;

    /**
     * 接种医师
     */
    @XPath(path = "/performer/assignedEntity/assignedPerson/name/text()")
    private String jieZhongYS;

    /**
     * 接种机构名称
     */
    @XPath(path = "/performer/assignedEntity/representedOrganization/name/text()",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_50_015_00))
    private String jieZhongJGMC;
}
